// 添加统一的返回结果方法
module.exports = async (ctx, next) => {
  ctx.sendResult = (data, code, message) => {
    ctx.body = {
      code: code,
      data: data,
      message: message
    };
  };
  await next();
};
